package com.yangc.chapter04springboot.service.impl;


import com.yangc.chapter04springboot.mapper.PersonMapper;
import com.yangc.chapter04springboot.model.Person;
import com.yangc.chapter04springboot.service.PersonService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class PersonServiceImpl implements PersonService {

    private final static Logger logger = LoggerFactory.getLogger(PersonServiceImpl.class);

    @Autowired
    private PersonMapper dao;

    public List<Person> selectAll() {
        return dao.findAll();
    }


}